﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DARE
{
    public class CInputProvider<T> : IInputProvider<T>
    {
        #region fields

        private IInputProvider<T> m_provider;

        #endregion

        #region Properties

        public bool ProviderEnable
        {
            get { return m_provider.Enabled; }
        }

        public bool Enabled
        {
            get
            {
                return ProviderEnable;
            }
            set
            {
                m_provider.Enabled = value;
            }
        }

        #endregion

        #region Method

        public void RegisterProvider(IInputProvider<T> _provider)
        {
            m_provider = _provider;
        }

        public T GetState()
        {
            return m_provider.GetState();
        }

        #endregion
    }
}
